<alert class="alert-msg" ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}
</alert>

<div class="panel panel-info">
    <div class="panel-heading">
        <h3 class="panel-title">新增banner活动</h3>
    </div>
    <form class="form-inline">
        <div class="form-group">
            <label for="title" style="width: 70px;">活动名称：</label>
            <input type="text" id="title" class="form-control" ng-model="title">
        </div>
        <div class="form-group">
            <label for="activityType" style="width: 70px;">活动类型：</label>
            <select id="activityType" name="activityType" ng-model="activityType" class="form-control">
                <option value="1">好物Banner活动</option>
                <option value="2">好物商品列表</option>
            </select>
        </div>
        <div class="form-group">
            <label for="startTime" style="width: 70px;">开始时间:</label>
            <input type="date" id="startTime" class="form-control" ng-model="startTime">
        </div>

        <div class="form-group">
            <label for="endTime" style="width: 70px;">结束时间:</label>
            <input type="date" id="endTime" class="form-control" ng-model="endTime">
        </div>

        <button type="submit" class="btn btn-primary" ng-click="queryList()">查询</button>
        <button type="submit" class="btn btn-error" ng-click="insertActivity()">新建</button>
    </form>
</div>

<div class="row">
    <span style="margin-top: 20px" class="col-sm-2">获取<strong>{{totalItems}}</strong>条数据：</span>

    <div class="col-sm-10">
        <pagination total-items="totalItems"
                    ng-model="currentPage"
                    items-per-page="pageSize"
                    max-size="3" class="pagination-sm"
                    boundary-links="true" rotate="false"
                    previous-text="上一页"
                    next-text="下一页"
                    last-text="最后一页"
                    first-text="第一页"
                    ng-change="queryList()">

        </pagination>
    </div>
</div>


<div style="height:400px !important;" ui-grid="gridOptions" ui-grid-auto-resize ui-grid-resize-columns class="grid">
    <!--这里显示页面信息 -->
</div>